Jake Vanderwerf
2026-08-25 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a
inc/rest/routes/AdminRoutes.php
@@ -1,6 +1,7 @@
<?php
namespace JVBase\rest\routes;
use JVBase\Instance;
use JVBase\JVB;
use JVBase\managers\Cache;
use JVBase\managers\IconsManager;
@@ -18,15 +19,13 @@
class AdminRoutes extends Rest
{
    protected array $fields;
    protected $meta;
    protected string $metaType;
    protected string $content;
   use Instance;
    public function __construct()
    {
        $this->cacheName = 'itsme';
//        $this->cacheName = 'itsme';
        parent::__construct();
//    $this->cache = Cache::for($this->cacheName, null, $this->cacheTtl);
    }
    public function registerRoutes():void
    {
@@ -70,25 +69,6 @@
        );
    }
    /**
     * @param array $filters
     *
     * @return array
     */
    protected function checkFilters(array $filters)
    {
        global $karma;
        $out = [];
        foreach ($filters as $type => $value) {
            if (!array_key_exists($type, $karma)) {
                continue;
            }
            $out[$type]  = jvbSanitizeIDList($value);
        }
        return $out;
    }
   /**
    * Handle cache-related actions
    */