createThemeTimestamp example


        if ($shop->getMain()) {
            $shop = $shop->getMain();
        }

        $old = $this->getThemeTimestamp($shop);
        $timestamp = time();

        $this->compileLess($timestamp$shop->getTemplate()$shop);
        $this->compileJavascript($timestamp$shop->getTemplate()$shop);

        $this->createThemeTimestamp($shop$timestamp);
        $this->clearThemeCache($shop$old);
    }

    /** * @return void */
    public function recompile(Shop $shop)
    {
        if ($shop->getMain()) {
            $shop = $shop->getMain();
        }

        
rename(
                $pathResolver->getCssFilePath($shop, 'new'),
                $pathResolver->getCssFilePath($shop$time)
            );

            rename(
                $pathResolver->getJsFilePath($shop, 'new'),
                $pathResolver->getJsFilePath($shop$time)
            );

            $compiler->clearThemeCache($shop$oldTimestamp);
            $compiler->createThemeTimestamp($shop$time);
        }
    }

    /** * Clear cache action */
    public function clearDirectAction()
    {
        $cache = $this->Request()->getQuery('cache');
        switch ($cache) {
            case 'Config':
                
Home | Imprint | This part of the site doesn't use cookies.