Forum

Thread tagged as: Problem

Cache Problems

Any updates I make to my CSS files don't show up in browser even after I clear my browsers cache. I noticed this in the Perch documentation, "If you set PERCH_PRODUCTION_MODE to PERCH_PRODUCTION in your config then they will not cache and you should see changes immediately."

However, I didn't see anything like that in my config file. Would I have to add that? If so what exactly would I be adding?

PERCH INFORMATION

Perch: 2.8.34
Production mode: Production (100)
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_blog (4.6), perch_twitter (3.5.1)
DB driver: PDO
DB tables: perch2_blog_authors (2), perch2_blog_comments (496), perch2_blog_index (1380), perch2_blog_posts (26), perch2_blog_posts_to_tags (55), perch2_blog_sections (1), perch2_blog_tags (23), perch2_categories (0), perch2_category_counts (0), perch2_category_sets (1), perch2_comments (0), perch2_comments_votes (0), perch2_content_index (85), perch2_content_items (22), perch2_content_regions (5), perch2_navigation (1), perch2_navigation_pages (1), perch2_page_templates (2), perch2_pages (5), perch2_resource_log (205), perch2_resource_tags (0), perch2_resources (177), perch2_resources_to_tags (0), perch2_scheduled_tasks (30), perch2_settings (27), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (1), perch2_twitter_tweets (320), perch2_user_passwords (0), perch2_user_privileges (37), perch2_user_role_privileges (23), perch2_user_roles (2), perch2_users (2)
Users: 2
PHPMailer: 5.2.21
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_twitter'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_twitter: post_tweets (1 mins), update_tweets (30 mins)
Editor plug-ins: redactor, markitup, ckeditor
H1: 5aecd6a82758793015fab85776feef12
L1: 540af6d08324a211062eb605ea85a84c
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.4: done
latest_version: 2.8.15
on_sale_version: 2.8.34
perch_blog_update: 5.0
perch_blog_post_url: /blog/{postSlug}
headerScheme: light
perch_blog_slug_format: {postTitle}
perch_blog_akismet_key: 932b5c263fb1
perch_blog_comment_notify: 1
perch_blog_max_spam_days: 0
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_comments_akismet_key: 932b5c263fb1
logoPath: /perch/resources/icon.png
perch_twitter_update: 3.5
update_2.8.18: done
update_2.8.29: done
update_2.8.34: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: santini_io_new
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: santini_io_new
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/Detroit
PERCH_EMAIL_FROM: npsantini@gmail.com
PERCH_EMAIL_FROM_NAME: Nick Santini
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/nicksantini/public_html/santini_io/perch
PERCH_CORE: /home/nicksantini/public_html/santini_io/perch/core
PERCH_RESFILEPATH: /home/nicksantini/public_html/santini_io/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_DEBUG:
PERCH_SCHEDULE_SECRET: twitterupdate
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/nicksantini/public_html/santini_io/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.5.38
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.52
MySQL server: 5.5.52-cll-lve
Free disk space: 2.13 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, cgi-fcgi, bcmath, dom, fileinfo, gd, imagick, imap, json, exif, mcrypt, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, soap, sockets, tidy, xmlreader, xmlrpc, xmlwriter, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 2M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 2M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /root/.rbenv/shims:/root/.rbenv/bin:/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/opt/puppetlabs/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
PWD: /usr/local/cpanel/cgi-sys
PHP_FCGI_MAX_REQUESTS: 5000
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 29914
SCRIPT_FILENAME: /home/nicksantini/public_html/santini_io/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@santini.nicksantini.com
CONTEXT_DOCUMENT_ROOT: /home/nicksantini/public_html/santini_io
REQUEST_SCHEME: http
DOCUMENT_ROOT: /home/nicksantini/public_html/santini_io
REMOTE_ADDR: 162.158.74.78
SERVER_PORT: 80
SERVER_ADDR: 107.180.27.180
SERVER_NAME: santini.io
SERVER_SOFTWARE: Apache/2.4.23
LD_LIBRARY_PATH: /usr/local/apache/lib
HTTP_CF_CONNECTING_IP: 74.139.251.179
HTTP_COOKIE: __cfduid=da3fda774dc7693568be94b0494a8f45c1488122315; _ga=GA1.2.252755527.1488122330; cmsa=1; PHPSESSID=775aksma9fde9jb627ecr35n14
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_REFERER: https://santini.io/perch/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CF_VISITOR: {"scheme":"http"}
HTTP_X_FORWARDED_PROTO: http
HTTP_CF_RAY: 33749fec07212531-ORD
HTTP_X_FORWARDED_FOR: 74.139.251.179
HTTP_CF_IPCOUNTRY: US
HTTP_ACCEPT_ENCODING: gzip
HTTP_CONNECTION: close
HTTP_HOST: santini.io
UNIQUE_ID: WLL8NcZH8AUAA4wagB0AAAAJ
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1488124981.1439
REQUEST_TIME: 1488124981
Nick Santini

Nick Santini 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Perch doesn't touch your CSS, so we aren't caching it, nor will production mode help there.

If you are working in Chrome you can disable browser caching in DevTools.

Ok. Is it possible that the server that my website is hosted on is caching them?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Yes but again this is nothing to do with Perch.