| | |
| | | */ |
| | | class CRUD { |
| | | protected CRUDSkeleton $skeleton; |
| | | protected CacheManager $cache; |
| | | protected Cache $cache; |
| | | protected array $config; |
| | | protected string $content; |
| | | protected array $taxonomies = []; |
| | |
| | | $this->user_id = get_current_user_id(); |
| | | $this->config = $this->constant[$content]; |
| | | $this->content = $content; |
| | | $this->cache = CacheManager::for($content); |
| | | $this->cache = Cache::for('crud')->connect('post')->connect('taxonomy'); |
| | | |
| | | if (JVB_TESTING) { |
| | | $this->cache->clear(); |
| | | $this->cache->flush(); |
| | | } |
| | | |
| | | // Create and configure skeleton |