Кешируется админка

Товарищи, кешируется админка. Каждый раз приходится жать контрол+Рэ для просмотра актуально информации.

Где может быть? 

Цитирую .htaccess 

Здесь глюк? или куда копать? Внешние сервисы кэширования не подключены

<FilesMatch "\.md5$">
    Deny from all
</FilesMatch>

DirectoryIndex index.php
Options -Indexes
# Comment the following line, if option Multiviews not allowed here
# Options -MultiViews

AddDefaultCharset utf-8

<ifModule mod_rewrite.c>
    RewriteEngine On
    # Uncomment the following line, if you are having trouble
    #RewriteBase /

    RewriteCond %{REQUEST_URI} /blog/\d{4}/ [or]
    RewriteCond %{REQUEST_URI} /blog/\d{4}/\d{2}/ [or]
    RewriteCond %{REQUEST_URI} /blog/blog/ [or]
    RewriteCond %{REQUEST_URI} /blog/blog/7bags/ [or]
    RewriteCond %{REQUEST_URI} /blog/blog/7bags/\d{4}/ [or]
    RewriteCond %{REQUEST_URI} /blog/blog/7bags/\d{4}/\d{2}/
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/blog/ [R=301,L]

    RewriteCond %{REQUEST_URI} !\.(js|css|jpg|jpeg|gif|png)$ [or]
    RewriteCond %{REQUEST_URI} apple-touch-icon\.png$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [L,QSA]
</ifModule>

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:SSL} !=1 [NC]
RewriteRule ^(.*) https://7bags.com.ua/$1 [L,R=301]

<ifModule mod_headers.c>
    <FilesMatch "\.(jpg|jpeg|png|gif|js|css)$">
	Header set Cache-Control "max-age=3153600, public"
    </FilesMatch>
</ifModule>

<IfModule mod_expires.c>
  ExpiresActive On

ExpiresDefault "access plus 1 days"

  # Images
  ExpiresByType image/jpeg "access plus 1 year"
  ExpiresByType image/gif "access plus 1 year"
  ExpiresByType image/png "access plus 1 year"
  ExpiresByType image/webp "access plus 1 year"
  ExpiresByType image/svg+xml "access plus 1 year"
  ExpiresByType image/x-icon "access plus 1 year"

  # Video
  ExpiresByType video/mp4 "access plus 1 year"
  ExpiresByType video/mpeg "access plus 1 year"

  # CSS, JavaScript
  ExpiresByType text/css "access plus 3 month"
  ExpiresByType text/javascript "access plus 3 month"
  ExpiresByType application/javascript "access plus 3 month"

  # Others
  ExpiresByType application/pdf "access plus 3 month"
  ExpiresByType application/x-shockwave-flash "access plus 3 month"

ExpiresByType application/x-font-ttf "access plus 3 month"
ExpiresByType font/opentype "access plus 3 month"
ExpiresByType application/x-font-woff "access plus 3 month"
ExpiresByType image/svg+xml "access plus 3 month"
ExpiresByType application/vnd.ms-fontobject "access plus 3 month"
</IfModule>

# сжатие text, html, javascript, css, xml:
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>

13 ответов

  • 1

    Гляньте в index.php.  При таком эффекте пару раз встречал правки именно в нем. В приведенном htaccess вроде все норм.

    • +1
      Sed_Lex Sed_Lex 23 июня 2020 20:58 #

      ну вот так выглядит. тоже не вижу ничего криминального. где еще может быть? :)

      <?php
      
      header("Cache-control: public");
      header("Expires: " . gmdate("D, d M Y H:i:s", time() + 60*60*24*100) . " GMT");
      
      		if(stristr($_SERVER['REQUEST_URI'], 'cart') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'onestep') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'checkout') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'webasyst') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'search') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'order') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'call') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'count') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'licences') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'compare') === FALSE) {
      	//	require_once "read_cache.php";
      }
      
      $path = dirname(__FILE__).'/wa-config/SystemConfig.class.php';
      
      if (file_exists($path)) {
      	require_once($path);
      	waSystem::getInstance(null, new SystemConfig())->dispatch();
      } else {
      	$path = dirname(__FILE__).'/wa-installer/install.php';
      	if (file_exists($path)) {
      		require_once($path);
      	} else {
      		//404
      	}
      }
      
      		if(stristr($_SERVER['REQUEST_URI'], 'cart') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'onestep') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'checkout') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'webasyst') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'search') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'order') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'call') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'count') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'licences') === FALSE AND stristr($_SERVER['REQUEST_URI'], 'compare') === FALSE) {
      	//	require_once "write_cache.php";
      }

      • +1
        Eugen Nichikov Eugen Nichikov 23 июня 2020 21:33 #

        В смысле ничего криминального?! :)

        А что же тогда видите тут как не кэширование на 100 дней любого скрипта, который генерируется через PHP?

        • +1

          Да-да-да....  Вот оно и есть... Поймать бы того кто так делает.... =)

          И да, Sed_Lex, а хостер часом не...  Ну в общем где сайт хостится? =)

          • +1
            Sed_Lex Sed_Lex 23 июня 2020 21:48 #

            а что хостер? что не так? :)

            давайте прямым текстом, бо я не совсем понинимаю технический намёк ))

          • +1
            Sed_Lex Sed_Lex 23 июня 2020 21:49 #

            могу слить контакты. Есть тут "типа разработчик" который за 50 баксов "ускоряет сайты до 90-100% по пейджспиду". Сам бы рад, что бы его забанили навечно

        • +1
          Sed_Lex Sed_Lex 23 июня 2020 21:48 #

          где что прибить. выходит я слеп. можно срочку указатЬ?

  • 1
    Sed_Lex 25 июня 2020 22:05 #

    Все равно кешируется!!! Хелп!

Добавить ответ

Чтобы добавить комментарий, зарегистрируйтесь или войдите