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
0answers
25 views

Refreshless doesn't work

I just tried to setup the RefreshLess module for my Drupal 8 site; after enabling it, I just see that some meta information is added to the DOM, but switching pages using links seems not to be ...
1
vote
0answers
12 views

Detect language when cache is enabled for anonymous

I have a multilingual site in which I need set cache page enabled for anonymous using Varnish. But if you enable page caching language is not detected for anonymous in pages without language prefix. ...
0
votes
0answers
14 views

Cannot redeclare class Doctrine\Common\Annotations\Annotation\Target

I'm regularly experiencing this PHP Fatal error: Cannot redeclare class Doctrine\Common\Annotations\Annotation\Target in ?uD on line 31 This ?uD string is random. I've seen so far among others: ...
0
votes
0answers
16 views

Best caching module when certain fields are country specific

I have a site with a couple of fields that are not visible to visitors from other countries. I have used the ip2country module and some custom code in my template.php file to acheive this "file ...
0
votes
1answer
12 views

Autcache + Varnish modules installed but cache tables growing

I have a site in Drupal 7, multilanguage and multidomain, and when I do a weekly manual database backup (apart from the automated ones), I see that the size of the mysqldump file is of about 200 Mb. ...
2
votes
2answers
68 views

How do I programmatically set cache age?

Drupal 8: I have the code for a block successfully doing its work and returning it. The block is called "RacerProfile" and it dumps all its content into variable "$pageContent". At the very end it ...
0
votes
0answers
18 views

Prepare for heavy load [closed]

Mobile push notification sends message to 20.000 users who installed app connected to Drupal. Let's say 2000 users click the message at almost same time (2 sec. time difference) or maybe more if it is ...
2
votes
2answers
79 views

cache_render database table growing in size

I am having a drupal 8 website where cache_render table is growing to GBs. I am not sure why this growing huge, any starting pointers would be helpful. Thanks
0
votes
0answers
12 views

Cache sometimes is not being updated on saving operations

This is a problem I'm struggling with for a few months already. I'm maintaining a pretty big news website, with a lot of content and multiple editors. The website is using paragraphs (which I don't ...
1
vote
1answer
16 views

Stop Varnish from caching 302 redirect from POST responses

drupal_goto() uses a 302 redirect by default, which means a lot of redirects, including form redirects, get served with a 302 response code. Having a issue in Varnish that is caching 302 response ...
1
vote
0answers
24 views

Using PrivateTempStore for anonymous users with Internal Dynamic Page Cache & Internal Page Cache modules

I'm developing a Drupal 8 project which interacts with an external API. This API handles user authentication, completely bypassing the Drupal user system. This means that logged in API users are ...
0
votes
1answer
39 views

Leverage browser caching issue [closed]

I added some lines in my .htaccess file, following Leverage browser caching on a drupal site, but Page speed tool still throws "Leverage browser caching error." for only images.
4
votes
3answers
58 views

Installed Boost Caching, but now my dynamic blocks and webforms are also cached

I just installed Boost module for Drupal 7, but now my Webforms and dynamic blocks like commerce shopping cart block isn't working. It's most likely cached, but what are some methods of getting these ...
0
votes
0answers
16 views

Reset all the cache related configurations

I am using Drupal 7 in my website. I enabled the cache option and unfortunately the website is down after some time. The hosting company told me that the website is eating too much of CPU, hence it is ...
3
votes
1answer
29 views

How to clear or rebuild a cached block for a specific user?

I have a block with the cache setting DRUPAL_CACHE_PER_USER. I want to clear the cache when a user performs a specific action. I want to clear the cached block only for the acting user, keeping the ...
2
votes
1answer
220 views

How do I get the current path of a block?

I need the current path, where my custom block is visible. So, i have written this code class MyBlock extends BlockBase { public function build() { $currentPath= ...
0
votes
1answer
13 views

deadlock with cache clear

I am trying to clear the cache or view status reports in D7 i get the below error. PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting ...
0
votes
0answers
14 views

Varnish is working but X-Drupal cache is missed

I have configured varnish on a Digital Ocean server and installed Drupal varnish module. I have confirmed that varnish is running but once i do a test on my site using blazemeter.com the server CPU ...
1
vote
1answer
18 views

Clear block cache in panels page

I'm having trouble with refreshing content in a block created with a custom module, placed within a panels page. My end goal is to display either regular or seasonal hours based on a set date range. ...
1
vote
1answer
34 views

Using cache tags for a particular node list

Caching in Drupal 8 is great, but documentation is thin (at this time) on using cache tags for render arrays in Drupal 8. I have some code that basically generates a list of node teasers, say for ...
0
votes
0answers
32 views

Page cache is not working over HTTPS

I have a Drupal 7 site that is served over HTTP and HTTPS protocols using default ports (80, 443). Cache is enabled of anonymous users. However, the whole cache functionality works only for HTTP ...
1
vote
1answer
28 views

What is the intended use of drupal_static?

I understand Drupal static cache is used to store static values in the memory for the length of the request to faster access them. However throughout Drupal and contributed modules I tend to see two ...
5
votes
2answers
145 views

Limit caching for a specific page

I'm working on a module, which includes a page that displays a select from a database table. The page content is getting cached for long periods, so is out of date for users. What's the simplest way ...
0
votes
0answers
11 views

Disable Cache for a specific block [duplicate]

I'm working on new website with Drupal 8 my site is now on production. I have a block of type php that read data from an xml file. I activated both cache (Internal and Dynamic) ,so every time i change ...
0
votes
0answers
7 views

ESI callback does not work from a theme

I use https://www.drupal.org/project/esi module. I have declared the function: function _my_devel_esi_test() { return 'ESI test is successful!'; } , which has the callback ...
1
vote
1answer
25 views

Is there any way to count the number of items in cache?

In Drupal 6, I used to be able to look up the number of items via {cache_MODULENAME} table direct in SQL. Is there any way to look it up via the cache API?
0
votes
1answer
28 views

Unable to clear cache

I am facing an severe issue with Drupal instance. I am trying to clear the cache and the page is redirecting to error page. This site can’t be reached The connection was reset. ERR_CONNECTION_RESET ...
5
votes
4answers
223 views

How do I correctly setup caching for my custom block showing content depending on the current node?

I have this very basic block which just shows the current node's ID. <?php /** * @file * Contains \Drupal\mymodule\Plugin\Block\ExampleEmptyBlock. */ namespace Drupal\mymodule\Plugin\Block; ...
2
votes
1answer
87 views

Cache remains stale for custom blocks after editing

My Drupal 8 website consists of multiple custom blocks created from the drupal backend user interface. As I went from dev to production settings and activating Internal Dynamic Page Cache (set to 1 ...
1
vote
1answer
30 views

Manage 2 separate page cache for the same URI

We have a multilingual website build with Drupal 7. We have a IP detection for detect Chinese users. Chinese laws do not allow the use of certain JS librairies. In our case, for one page, we use ...
0
votes
0answers
9 views

Alter field value without save it, but caching it

I want to alter a body's node value, but without saving it: the altering depend of a array of values, witch it could change sometime, so i have to update every node at each change if i save it. ...
1
vote
2answers
43 views

How do I invalidate cache of an embedded view?

I have a node type "Article" that contains a repeating Paragraphs field. One of the paragraph types let's the user embed a view using a entity reference field. When rendering an Article node ...
0
votes
2answers
36 views

clearing cache to call hooks in .module file

I have created a token in .module file. that gives current node title. But every-time I change the title of node, I have to rebuilt cache so that updated title get reflected in my token. Of-course ...
0
votes
1answer
28 views

Anyway to clear cache on Drupal 7 without any extra modules or even going to the performance page?

I'm looking for a way to clear cache easily without installing any fancy modules or going to the performance page. Is there a URL I can just visit to clear the cache? Basically try to find the ...
0
votes
0answers
20 views

Drupal Caching Files

After install and setup of my Drupal site, I've noticed that Drupal has placed a few dirs/files in my file directory like css/js. Is it safe to remove these files when I move my site? What other cache ...
2
votes
1answer
35 views

Please explain caching in complex render arrays

The Scenario In hook_block_configure(), I'm displaying a configuration form to users that is represented by a fairly complicated render array. The purpose of the form is to allow users to configure ...
0
votes
1answer
22 views

Internal server error when programmatically updating about 100 nodes

I'm writing a function that unpublishes a bunch of event-type nodes within a date range. My query pulls about 100 nodes, but I'm apparently maxing out the available memory. Here is the code in ...
0
votes
0answers
5 views

What is the best context for rendering embeddable view displays?

A view display can be rendered using views_embed_view. My question, does it make any difference in terms of performance / caching to call this function inside a node's body field or inside a ...
1
vote
1answer
28 views

Node edit form shows cached or previous title while editing node, after updating node?

When I update a node the revision show changes in values when we see diff but after updating node when I edit node again in node edit from it shows old value ie: cached value. When I flush all cache ...
0
votes
1answer
28 views

Achievement Popup notification doesnt appear on cache page

I am using achievement module on site , it shows a popup notification when a particular achievement is reached . However due to caching (Authcache for authenticated user) , the popup doesn't appear . ...
1
vote
2answers
38 views

drupal avoid caching for a javascript when page cache is on

So I have a custom block that shows a div and a JavaScript (tried inline and file), while page cache is on. JavaScript loads a uncacheable token got generated through a php function called within ...
1
vote
0answers
85 views

Showing local tasks in toolbar with hook_toolbar: caching problem

I'm creating a module using the toolbar api showing all administrative functions in a more compact toolbar. I'm having "cache" troubles showing the local tasks in the toolbar... How can I keep these ...
1
vote
1answer
55 views

Anonymous user cache control

We have written some custom blocks that render dynamic content; unfortunately, the caching defaults cache the first render of this block (and don't refresh for authenticated users). Cache control ...
1
vote
1answer
24 views

Varnish + Adaptive Theme

Using the Adaptive theme on Acquia platform and seeing an issue with mobile rendered views being cached and served to desktop browsers with block regions hidden for mobile display. The issue seems ...
1
vote
1answer
29 views

Is in Drupal the way to cache whole region?

I have a region which contain several blocks, each of them is changed rarely. I want to cache whole region (for each user), but i can not find the solution. Watching into the sourses gives no result ...
3
votes
1answer
35 views

Is there a way to quickly disable caching for all views? (for dev work)

Is there a variable/other way to quickly disable all views caching when working on a dev server? I have a lot of views which have different caching settings, and there are times when I am doing ...
3
votes
1answer
36 views

Clear cache tables

I installed a 'test' theme and then uninstalled it. I ran drush cache-rebuild and I also cleared all caches in the Configuration->Performance menu. However when I run drush config-export, to export my ...
0
votes
0answers
20 views

commerce add to cart not adding product to cart

I have an e-commerce site. In that, I have created product listing page using views. I have added add to cart field in the view, so the every product in the view will have add to cart button. I have ...
1
vote
1answer
57 views

Why am I getting a 200 status header when the page is being served from cache?

Been running into a weird issue with all of our Drupal 8 websites, hosted on different servers. The pages are caching correctly, x-drupal-cache header shows a HIT as well. The page however has it's ...
1
vote
1answer
33 views

Context and Page Caching

Just started a gigantic Drupal build and I'm trying to validate if the Context Module is the correct option for a segmented content delivery system. It appears to be and I am optimistic. The project ...