Fast cache on files

I know there were some issues on storing files of cache to retrieve them fast.

My solution was - creat subdirectiry structure like squid-cache uses.

But there was a problem - we do not know when cache old or not.
My solution was - checkpoint variable to differ old cache content from new content to know when just recache it.

Of course this structure can grow without limitations -but it's not a problem make cron script to just remove files from cache

cache need files/cache directory
Here my custom cache.inc is:

<?php
/*
*
* Filecache by Ilya V. "brainstorm" Azarov, brainstorm.name
*
*
*/
class cache_cc{
var $data, $created, $expire, $headers, $checkpoint;
function cache_cc($c){
$this->data = $c['data'];
$this->created = $c['created'];
$this->expire = $c['expire'];
$this->headers = $c['headers'];
$this->checkpoint = $c['checkpoint'];
}
}

function filecache_get_checkpoint($table){
if($table == 'filecache_checkpoint') return 0;
$key = $table;
$lock = filecache_lockpath('filecache_checkpoint', $key);
$dir = filecache_md5path('filecache_checkpoint', $key);
$src = filecache_name('filecache_checkpoint', $key);
$f = fopen($lock, 'w+');
if(flock($f, LOCK_SH) && file_exists($src) ){
$cache = @unserialize(file_get_contents($src) );
$checkpoint = $cache['data'] ['checkpoint'];
flock($f, LOCK_UN);

How does one ... create an image gallery that is specific to a node + easy image uploads for users.

I have combed the forums and interrogated the people in #drupal-support.... so far i have not found or possibly overlooked the solution to my "ambiguously easy" image gallery problem.

I am in search of a simple way to add an image gallery to custom node types (node-example.tpl.php). Essentially a user-roll of my choice needs to be able to create content by selecting the appropriate node type of their choice. Upon creation all users that have permissions will then be able to "edit the node" and simply upload images to the node's gallery ... and then choose what picture will appear as the "showcase pic" which will be the main picture of the node.

This procedure will work for many different purposes ... however the project i am currently working on is a real estate site. where agents need to be able to login ... and simply add a property node.

I have looked at node_image.module but i havent been able to get it working. I install it and enable it ..... and then go to add an image and when i hit upload or submit nothing happens. The page changes like it should when you hit submit but the image is not added to the node's gallery.

Writers' Workshop and Publication -- migrating from homegrown CMS

Hi -- I run a writers' website and publication that's been living on a painfully-dysfunctional homegrown CMS site, and I'd like to get it onto a more stable system -- preferably one with a passionate open source development community attached to it. Drupal has my attention because some of the sites I admire most have chosen to use it. My community's site has some unique (as far as I've been able to find) features, though, so I'm not sure where to start in evaluating Drupal's appropriateness for the project. Can you help?

Here's an overview of what we need to do as a community:

* Users upload writing by genre
* Users can annotate writing and tag/categorize it based on what kinds of feedback they’re looking for
* Users comment on each others’ writing (and receive email notifications)
* Users track multiple versions of their writing
* Users submit their top 2 (or 3, or 4..) pieces of writing to be considered for publication
* Admin has the ability to freeze submissions, so submission pool doesn’t change while editors are in review process
* Editors can login and leave comments to one another on pieces, rating them and collaboratively deciding which 30 (or so) pieces are best
* Staff writers can upload articles and photos

Short job fixing CSS problem in IE6, Drupal site

My new Drupal site has been online about six weeks and is working reasonably well,
except for one very significant problem: it doesn't render properly in IE6. Something
with the way IE6 renders floats; it moves the left column in about 1/2", puts text over
graphics, etc. My Drupal specialist, a real ace, is quite sure this is due to non-compliant HTML
that I've added to the content while editing a page -- an open tag or something like that.
He's likely right, I've seen how that can "blow up" Drupal pages; but neither of us can find this.

I'm looking for someone with strong HTML+CSS experience, that is confident they can
come in and work with us to fix this. For starters, we'd email you the HTML and CSS code to look at,
and answer any questions you have. If you can't fix it from that, we may
get you site access. Please let us know your hourly rate, and if you would take it on
for a fixed cost (e.g. $50?). Payment will be made by PayPal. There is of course the
potential for more work as this site grows and develops as it already does constantly.

The url for my website is (spaces added, so the spiders won't pick it up here):

ww w. b e ll c. c o m

I have an old machine here running IE6, so we could quickly test any "fixes". We have found
that the "IE6 emulators" don't always work for things like this.

I lost everything in the page bottom section of my site

Drupal was installed and working fine, but while I was configuring the dichotymy theme I lost everything in the page bottom section of my site. This included the navigation. The site is fine as long as one does not log in. HELP!

Workflow workaround?

I know there are some special workflow modules available but I'd like to use the stock distribution of Drupal.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x