Tagged Questions

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
4 views

Alter view with hook_views_post_render and save results to cache

How can I alter the results of a view with hook_views_post_render but save the altered output to cache, in order to avoid the overhead of altering the results on every request? The ideal scanario ...
-2
votes
1answer
24 views

Cache option in shared hosting with CloudLinux OS [on hold]

My site is hosted in a shared hosting with CloudLinux OS. The host allow me to choose PHP version and install php extension. I chose the php 5.5 and there are a few extension available and they ...
0
votes
1answer
17 views

Removing cached reference to missing table: services_user?

When trying to update user profiles via the Services module (not via drupal) - calling mysite.com/drupalgap/user/1.json as a POST with correct parameters - I'm getting the following error: 500 ...
0
votes
0answers
20 views

Disable browser cache when user enters a page from the back button [on hold]

When a user returns to a page by using the browser back button I would like the page to be served from the server rather than from the browser cache. Any ideas how to do this.
0
votes
1answer
26 views

drupal loses track of a library (leaflet), randomly

I have an strange problem with a library (leaflet). I have some maps, and it works fine, but randomly (as far as I have been able to detect) drupal is unable to find leaflet.js and leaflet.css (it ...
3
votes
1answer
97 views

Is flush and clear cache the same?

I know this is a very basic question. Is flush and clear cache the same in Drupal 7? How will I flush cache in DRupal 7? It seems like the only available option for me is clear cache. But I saw a ...
0
votes
0answers
12 views

Drupal 7, after logout browser is caching pages as if user is still logged in [on hold]

I've built a Drupal 7 site with Drupal Commerce and using Bootstrap for themeing. The site is turning out great, but I have a user panel that allows for anon users to login and view their cart, and ...
0
votes
0answers
42 views

What causes node edit pages to get expired?

This is a very strange thing I have ever faced in Drupal. When I open a node edit form and the process takes time usually more than 1 minute when I click on save the page gets reloaded and nothing is ...
0
votes
2answers
35 views

How to give a user the rights to “clear cache”

I need to give a user the ability to "clear cache" since he sometimes does some changes to the menus, etc... How can I give him a right to do that, or can I just send him a URL or post something on ...
-2
votes
1answer
90 views

How can I avoid clearing caches when CSS changes are made?

Every time I make the slightest CSS change, I need to clear cache to see the changes. What can be done about this?
0
votes
0answers
14 views

Unable to login / Warning: array_flip(): Can only flip STRING and INTEGER values!

My site has completely become unusable as it's not allowing users to log in into the site. The problem happened when I truncated the accesslog, login activity tables from the database. Later I ...
0
votes
1answer
17 views

Boost not refreshing views page

I am using Drupal 7.32 and the latest Boost, Boost Crawler and Cache Expiration modules. My 'normal pages' refresh fine with boost when i amend them ie. articles, Basic Page, Content Type node, but if ...
3
votes
4answers
42 views

How can I invalidate a cache on a specific View?

I am facing a situation where I need to invalidate a specific View in order to initiate clearing the cache on that View. views_invalidate_cache() clears ALL cached Views data, for every View on the ...
1
vote
1answer
49 views

Why my website is showing junk characters?

My Drupal 6 website is showing junk characters like: <�h�3�>�C�o�m�m�e�n�t�s�<�/�h�3�>� �<�t�a�b�l�e�>�<�t�r� �b�g�c�o�l�o�r�=�'�#�E�7�E�7�E�F�'�>�<�t�d�>�P�o�s�t�e�d� �O�n�:� ...
5
votes
1answer
146 views

How does CSS and JS aggregration work in Drupal?

When Drupal is set to optimize JS and CSS, it creates the 'js' and 'css' folders in your public file system root. Aggregated JS and CSS get stored in these directories. I've tried to figure out how ...
0
votes
1answer
17 views

Cache SOAP search results from external web service

I've inherited an older Drupal 6 site which calls an external SOAP web service which not only takes a while to query and display results (approx. 5 seconds) but also re-queries the web service when ...
2
votes
2answers
161 views

How to rebuild registry table?

I've truncated registry table, because of the other problems, but now I have problem rebuilding the registry table based on the files listed in the database. I'm calling registry_update(), ...
0
votes
1answer
37 views

Page caching with multiple versions of the cache

My site is very much faster with page caching on. However, I have a custom module that serves 5 different slightly different versions of my content. In other words, people in New York see East Coast ...
0
votes
0answers
14 views

I am getting the following error PHP Fatal error: Class 'VarnishCache' not found in /var/www/html/couponvodoo/includes/cache.inc on line 33

Suddenly my site down and am getting the following error PHP Fatal error: Class 'VarnishCache' not found in /var/www/html//includes/cache.inc on line 33
0
votes
1answer
27 views

How do I get a freshly updated value (i.e. not the cached value) using entity_metadata_wrapper?

In my code I am inserting a new value into the database directly using db_insert (i.e. inserting an entirely new row). The type of field, however, already exists in Drupal which is called ...
0
votes
1answer
41 views

What are some php cache related modules for drupal 7?

i just updated my server to php 5.5 and been reading about apc and opcache, and I'm not to sure which one to use or what modules support this feature. What are some modules or modifications to drupal ...
0
votes
1answer
28 views

Form generated from form cache displays, but missing name and value attributes

I'm having a problem displaying a cached multi-step form in a custom module which generates custom entities. After two steps, the form posts to an external URL (action changed with ...
0
votes
0answers
31 views

X-Drupal-Cache is missing from HTTP headers

X-Drupal-Cache seems to be missing from HTTP headers. The funny thing is that, when I cleared my cookies, it reappears twice: once with a "MISS" and then with a "HIT". After that, X-Drupal-Cache ...
0
votes
1answer
29 views

Views are disappearing randomly; always needing to flush caches

I am writing a module that has 2 views in code. At first, I pasted the code that was exported from views directly into hook_views_default_views() like so... function MY_MODULE_views_default_views() ...
0
votes
1answer
30 views

Stop caching for a specific node (by nid) Drupal 7

Ideally i want to set custom params for caching in some particular nodes using conditions in my template.php E.g. algorithm: for node with known nid set custom caching params But that's enough for ...
1
vote
2answers
107 views

Performance issues with big amount of nodes [duplicate]

In the last couple of months I was working on renewing old project's platform from Drupal 5 to Drupal 7. The last step was to migrate old data (from the past year) to the new system. For this purpose ...
0
votes
0answers
29 views

Avoid caching pages for authenticated users with Varnish

I have the following problem: when a user logs in and navigates through pages that he visited when was an anonymous user, he "sees" the cached page instead seeing the page version for logged users. ...
1
vote
0answers
41 views

Drupal and cache in node_load

I have written a simple module for counting node views. For each nid I store 2 numbers: impression and view. 1 Impression is when the node is loaded and visualized in any display mode (teaser, views ...
0
votes
2answers
72 views

How bad is it to use Node_load in a loop in drupal 7?

Something like: for ($i = 0; $i < 100; $i++) { $node = node_load($i); print $node->fieldYouWant; } That is a lot easier to read, gives you access to all the fields etc. However, in a ...
0
votes
1answer
39 views

How to configure boost for multisite configuration

I installed the Boost module in my site. The site is running on multisite configuration having subdomains like http://site1.example.com http://site2.example.com http://site3.example.com ...
1
vote
2answers
52 views

Caching problem. Site only works with cache off

I have this drupal 7 site. I wanted to clone it in order to try some new stuff in it, without working on my localhost. So I did it, following these steps: Cloned the database: mysqldump -h localhost ...
0
votes
0answers
26 views

Why is this administration page cached?

I created a group entity which has a tab 'Pending memberships'. This page callback does a database query which retrieves the pending memberships and renders the usernames in an item list, along with ...
0
votes
1answer
99 views

Drupal web cluster with memcached. memcached failover?

Running Drupal 7 sites (under Aegir) and I'm investigating a method to scale out the web boxes horizontally, so that any Apache server can process a request for any Drupal site. We're currently at ~50 ...
0
votes
1answer
28 views

How do I disable the cache clear on comment form submission?

Unless I'm reading this incorrectly, it looks as if the last thing comment_form_submit does is clear the cache. All of it. This is done so anonymous users see the comment they posted. I have a site ...
1
vote
0answers
24 views

Calendar dateobject performance issues

I am using Drupal 7 and unfortunately there are problems with the calendar module. The calendar itself is used in a relatively small enviroment of 20-40 users, which are all registered userers with ...
7
votes
3answers
326 views

Site performance , cache not working properly

I am using the Performance Logging Module. Above screenshot, one strange thing I noticed that Insert Cache_bootstrap on every page. When you go to any page (both admin theme and frontend theme) ...
0
votes
1answer
22 views

Does performing $entity->save() on field collection programmatically clears the page cache of it's node host?

I am using $entity->save() on a custom hook_cron that runs every minute. Does anyone knows if by doing $entity->save() , Drupal will clear the page cache of the nodes/views/panels housing it?
0
votes
0answers
41 views

How to clear caches after workflow state change?

I have a site with a lot of content in various Workflow states for editorial processes. Only the "Published" state is visible by anonymous users. I use Drupal's basic page caching. For a long time ...
1
vote
1answer
42 views

In which file to add the cache_clear_all function

In my situation I would like a certain block on my page with real time information to not be cached for anonymous users. Literature listed below: https://www.drupal.org/node/42055 ...
1
vote
1answer
150 views

How to set If-Modified-Since HTTP header in my drupal site

I want to implement If-Modified-Since HTTP header in my drupal site. How do I ensure the If-Modified-Since HTTP header is supported and that it is active?. If it is supported but not active then how ...
0
votes
1answer
91 views

Configuration Settings of Authcache + File Cache

I have already file cache module installed and working perfectly except that I've read that it also work with authcache. So I installed authcache but wondering what is the proper configuration in the ...
0
votes
0answers
41 views

Caching home page content instead of actual content

I am facing a problem related to cache. Some of the pages showing home page content instead of actual content. And after clearing the Drupal inbuilt cache ...
0
votes
0answers
23 views

use “no cache” but input filter seems to be cached in Drupal 6

I am trying to display a add to cart button and it only rarely works. It seems to work when the cache is cleared and then not work. I have added the no cache option but this doesn't seem to do ...
0
votes
0answers
25 views

Trying to figure out why Captcha displays sometimes and not others

Drupal newbie. Just enabled Captcha and assigned to forms through Configure window. Captcha doesn't show up for this page: http://fibroids.ucsf.edu/node/126 but does show up for its alias: ...
2
votes
1answer
42 views

Is a DB transaction executed when it is committed?

cache_get() is not working as expected when called in a request initiated by drupal_http_request() on the same server. Is it true that the cache_set() immediately before drupal_http_request() doesn't ...
0
votes
1answer
65 views

How to make form update/rebuild every page load?

Part of my custom form that gathers petition signatures includes some markup saying "last signer: Bob, 3 minutes ago", looked up from a database. But if the user does not submit the form, eg they ...
0
votes
0answers
30 views

tokens disappeared after cache flush

After one of my cache flushes, I found that all of my tokens disappeared. In the browser tab, the title was now [current-page:page-title], [site:name] and I can't edit any content as it gives me this ...
0
votes
0answers
20 views

Multisite Cache Clear

I have a site with multisite settings There is one main site, where all the news are created and those are gotten by the other sites via a direct db_query via a taxonomy tid. This is the part that I ...
1
vote
0answers
28 views

Varnish and expire module adding starts with on regular expressions

I have varnish running with the expire module that sends bans into varnish when an article is published. The problem is that it doesn't expire all versions of an article. Some articles could be ...
1
vote
1answer
41 views

Views caching dont show changes

I'm having a problem with views and caching. Within a custom module, i do changes on my database, which is working fine, but my view won't show that changes until I clear all caches. I tried to ...