Caching is the use of a faster data store to improve response time, by reducing the amount of processing.

learn more… | top users | synonyms (1)

0
votes
2answers
36 views

error when trying to clear the cache in drupal

I was going to use mailchimp module to create my newsletter but an error revealed saying that i should install the version 2.0 of librairies, so i delete both modules, started again,that worked just ...
0
votes
0answers
15 views

Caching issue with domain access and media image

If I clear the cache and access the node with media image from a user with no domain access to image, am I going to get empty field from the cache if I access it from super admin? I am currently ...
0
votes
1answer
14 views

“Disabled” regions re-enable after navigating away and back from module page

I have a form module that I would like to have on its own page, with no header, footer, etc.. I thought I was successful with adding hook_menu() and a page callback to render the form's block, then ...
0
votes
2answers
26 views

Clear views cache after node inserted in Drupal 7

I've views which list the list of node details. I've set views cache for 30 mins. I want to clear particular views cache when insert a node. I've tried below code to clear cache but there is no ...
1
vote
0answers
26 views

“?n” appended to URLs… why? How do I prevent this?

When CKEditor references my theme's stylesheet (as well as other resources), it appends ?n to the path. Here's a screenshot from Chrome's web inspector (see highlights): (This is from the ...
0
votes
0answers
7 views

Trigger Authcache Reload on Field Change for Drupal Commerce Products

I activated authcache and the cache system is working well. When i change the price for a product the page is read from the cache. How can i trigger to reload the page from database if one specific ...
0
votes
0answers
21 views

User landed on cached page instead of language selection page

Problem : On multilingual site, varnish caching is enabled. When any user call www.example.com, page gets cached to the first visitor's language preferences. All subsequent visitors get pages in that ...
0
votes
1answer
46 views

What causes very long initial visit load times intermittently?

I'm working on what is basically a one page site externally: http://drupals.badgerfort.com. There's very little to it. But I'm getting reports that it's sometimes loading so slow to the point ...
1
vote
1answer
32 views

Clear cache of node

I am implementing hook_entity_view() in my module. In the hook I am adding a link to the node by rendering a array. The links need to be added only when a certain configuration condition becomes TRUE. ...
0
votes
1answer
16 views

CTools CSS Cache Error on Status Page

I'm getting this error on the Status report page. Advice on resolving this?
1
vote
2answers
45 views

If you update a routes file in Drupal 8 how do you clear the cache?

Having worked with Drupal 7 since its launch, I'm learning Drupal 8. At the moment I'm finding that whenever I change anything I have to do drush cache-rebuild to get things working again. On my VPS ...
0
votes
0answers
9 views

Drupal module Boost pulling the wrong pages

I am implementing the boost module for Drupal on my site and have run into this caching problem. The site caches pages but when visiting as an anonymous user it gives me the wrong cached pages. I am ...
0
votes
0answers
13 views

Ctools session variable and varnish

I have enabled Varnish caching in my webserver. But when I load my pages on web browser, the pages are not showing from varnish (age is always 0 and one value in X-Varnish header). After debugging ...
0
votes
1answer
37 views

Block in Drupal 8

I have coded a plugin in my module which extends block base and generates labels for block in /admin/structure/block page under Place block. These block are being generated for different entities. The ...
1
vote
3answers
50 views

How to disable/enable cache of all views programmatically?

Case: I have over 50 views in my site and for performance improvement all were enabled to cache data during their implementation. Now I want to disable cache for all views at once for some reason ...
1
vote
0answers
18 views

Using captcha in varnish setup

Captcha and any form of page caching don't get along. I understand why this is, but i'm wondering if there might be a certain setup to use captcha even in cached environments. Post requests for ...
1
vote
1answer
46 views

Page Caching wrong CSS

got a weird issue I was hoping someone could help with. I have a site that uses multiple subthemes, with different ones being served depending on url var. IE, subsiteone.mysite.com, and ...
0
votes
1answer
11 views

How to check if a View was cached?

Is there a simple way to check (example: see from UI or browser developer tools) if a rendered View was retrieved from cache or just generated on the page load? This would need to work for every view ...
0
votes
1answer
18 views

Disable client- or proxy-side caching on anonymous pages (Cache-Control header), without disabling server-side caching?

My CDN seems to cache the /user page, which means I can't access my account page after logging in. I could add it to cacheexclude's uncached list, but that would make PHP run for every bot that hits ...
0
votes
0answers
32 views

caching frontpage in cloudflare free?

I've set up cloudflare caching of Drupal's frontpage by adding a Page Rule for my Drupal base URL, with a "Cache Everyting" setting (otherwise, caching is enabled only for certain file extensions). ...
0
votes
1answer
19 views

Unable to Get Image to Un-Cache

I've replaced an image on my home page with another image. I've verified that the new image is there (with the same name as the old image). And it's the only copy. I've run cron and cleared caches ...
1
vote
1answer
14 views

Does the Services module implement caching on GET requests?

Before I build a REST server with the Services module, I'd like to know if the responses to the GET requests are being cached? I searched Google and it seems that caching wasn't implemented, however, ...
0
votes
1answer
29 views

What is the simplest way to flush cache at a predetermined date and time?

For site a) I would like to set up a schedule "page and else"cache clear every day at midnight. For site b) I would like to set up a schedule full cache clear every Wednesday day at midnight. I am ...
0
votes
0answers
25 views

Views Caching Questions

I have a view with multiple fields. One of those fields is the date field and I'm using time ago. 1) I was wondering if there is a way to cache the view and all of its fields except for the date ...
0
votes
0answers
16 views

Boost and expire not working after update

big problem here. I have a website up from 2 years and working with combo of boost cache system and expire to handle clear cache on insert/modify or delete Node. Two days ago I did upgrade of this ...
0
votes
1answer
17 views

cache issue - misaligned views cached output

I am trying to set the view on the home page. http://www.userbase.com/ The content gets misaligned for anonymous user. I can see proper output if I am logged in. Any ides? I am using following ...
0
votes
1answer
73 views

Cache-Control: no-cache despite allowing cache for anonymous users

We have a D7 site I'm trying to cache with Varnish. The assets are caching fine but for some reason every page is served with this header: Cache-Control: no-cache, must-revalidate, post-check=0, ...
3
votes
1answer
61 views

Request a page - as admin - via command line to build up cache

Folks: I have a pretty hefty view page which has been overridden with template files to produce a custom gantt chart for a long list of users. For each row of gantt data - the outputted html is ...
1
vote
1answer
39 views

Wrong caching of embedded views block

I am having trouble with the Cache API in Drupal 8. I embedded a views block with pagination through a field preprocess function into a node. When caching is off, I can normally use the pager and will ...
2
votes
2answers
45 views

xmlrpc() error: (-1001) unable to parse URL during Drush command

I have an odd error coming from Drush when I perform module updates and other commands (it's most consistently comes from module updates). Near the end of the command execution this message pops up: ...
2
votes
0answers
51 views

Content type disappear when cache is cleared

Lately, every time I clear the cache, my content types are systematically deleted. I use Drupal 7.36. The main plugins I use are the following: Views 3.10 Chaos Tools 1.7 Entity API 1.6 and ...
-1
votes
1answer
27 views

Difference between DRUPAL_CACHE_PER_PAGE and DRUPAL_NO_CACHE

What is the difference between DRUPAL_CACHE_PER_PAGE and DRUPAL_NO_CACHE? I'm developing a module that will generate 2 blocks for menu and it's sub-menu in different blocks and can't decide between ...
0
votes
0answers
10 views

Search Results Templates Strange Cacheing Behaviour

I've been trying to resolve an issue with my search results templates. There are two scenarios that I could really use some help with understanding: I have no search result templates inside my ...
1
vote
0answers
40 views

leverage browser caching on a drupal site

I have ran a site through Google Page speed insights and one of its recommendations is to leverage browser caching for https://www.google-analytics.com/analytics.js. Is this possible on a Drupal Site ...
2
votes
1answer
82 views

Aggregated CSS/JS file names, when regenerated?

What triggers the aggregated/compressed CSS/JS file names to be regenerated? Because of the default header for .css and .js set in Drupal's stock .htaccess is 2 weeks, this causes issues with Varnish ...
0
votes
0answers
28 views

How can I clear the image styles cache for an individual image file?

I'm attempting to clear the image styles cache for an individual image file every time I edit that image. On my site, I have a content type, Profile Picture, and I'm using the following code: ...
1
vote
1answer
31 views

How to change non-color-related CSS after the color module has been used?

I haven't used the color module in years, since I try to avoid it because I know it kind of freezes your CSS changes. I have a client who has been using color module with a customized version of the ...
0
votes
2answers
65 views

Drupal 7 changes Last-Modified header, even if the resource hasn't changed

Unless I'm mistaken, Drupal is changing the "Last-Modified" HTTP header for a page any time the page cache is regenerated - even if the raw content remains identical. This means that clients end up ...
0
votes
0answers
31 views

Increase perfomance of site [duplicate]

I am using TB Mega Menu in header. The setup is Drupal 7.35 + Oracle + Apache2. Theses are all the items which takes more execution time. How can I cache menu items path and all Js and CSS files.
0
votes
0answers
27 views

Has the Block Cache Settings from Drupal 8 been back-ported to Drupal 7?

I noticed in Drupal 8 there are options to cache a block: I was wondering if these options exist in Drupal 7 with a module? Has the feature been back ported? or was it a contrib module to begin ...
0
votes
0answers
22 views

Form action=“/cron.php”

I got a custom form in a block, wich is available on my homepage. After e while the form action changes to action="/cron.php" instead of action="/nl". I can't figure out where this fault is comming ...
1
vote
1answer
29 views

base_url in settings.php with mobile version

I've both www.example.com and m.example.com pointing to the same directory in Ubuntu and there was in the settings.php with this line: $base_url="www.example.com"; I want to ask what will happen ...
0
votes
1answer
32 views

Store mysqli-connection object in cache

I have some code in a drupal 7 site that makes repeated requests to an external database using mysqli. To speed up the code, I was hoping that I could store the mysqli-connection object in the cache, ...
2
votes
0answers
38 views

Custom module data storage

In Drupal 6, I'm writing a custom module that generates several pages (as a Drupal newbie). Mainly public form pages for soliciting donations - users fill out their info (amount, frequency, etc.) and ...
1
vote
1answer
74 views

How can I prevent a particular page being cached in Drupal 8

I have activated the cache on my Drupal 8 site, and of course all pages are cached as expected. However, I'd like to have a specific page bypass that cache. In my controller I built the page as ...
1
vote
1answer
17 views

Cache + random + hook_form_user_register_form_alter

for a captcha purpose, I'm trying to set a random number in the hook_form_user_register_form_alter For example : function my_module_form_user_register_form_alter(&$form, &$form_state) { ...
0
votes
1answer
23 views

This form was missing from the server cache on Drupal 8

On my site I do this: I got a form with this field: 'myfile' => [ '#title' => $this->t('MyTitle'), '#type' => 'managed_file', '#upload_location' => 'public://myfolder', ], And ...
0
votes
2answers
35 views

What is cache_menu in Drupal 7 DB? Safe to empty?

What exactly is doing this cache_menu table in MySQL Database of my Drupal 7? It is the hugest table of all = currently 308 mb.... (and I have disabled search term indexing, so this is absolutely ...
0
votes
0answers
68 views

Using Lazy Pane: How to cache a panel pane after it was loaded using ajax

I have a panels page that uses Panels Tabs loading panes with Ajax. It uses the module Lazy Pane https://www.drupal.org/project/lazy_pane, but a solution with any other module or method is welcome. ...
1
vote
0answers
36 views

Drupal cache problem, strange issue

I have a site on Drupal 7. After migration on new server I have some issues. Site works normally and everything is ok, but after some time I can't see images, can't upload new images and don't work ...