Proper use of cache - CACHE_PERMANENT?

Hello, I'm looking for clarification on using cache_get/set. The normal rule of thumb seems to be a bit different than the docs: http://api.drupal.org/api/function/cache_set/7

Rule of thumb is that with cache you can lose your data at any moment.
Rule of thumb is that variable_get/set and custom tables if for persistent data.

No problem when the temporary data does not need to be shared with multiple users, but when the data does need shared, one needs to do custom tables, variable_get/set or cache_get/set (any other options?).

The API states, "CACHE_PERMANENT: Indicates that the item should never be removed unless explicitly told to using cache_clear_all() with a cache ID." The table column states "expire A Unix timestamp indicating when the cache entry should expire, or 0 for never." And unless your module implements hook_flush_caches(), the data will not be flushed when a user clicks "clear cache". I also see a handful of functions that call cache_clear_all() with the finer control of passing options. This seems to imply that a developer can have a bit more control over data loss than "any moment".

There are a few catches,
It looks like the core bins may or may not expire automatically regardless of CACHE_PERMANENT?

How do I unblock the admin?

I set up a site a few weeks ago with a forum and haven't had time to get back to it until today. It was hit pretty hard by spammers. In one fell swoop, I selected all users and blocked them.

First, I don't know why I am allowed to block the only admin account, but how do I unblock it?

Second, when I have access to the forums again, how do I delete 12 pages of spam posts?

Local file manager

I need a module/linkeditor/filefield - solution which can give me the possibility to insert a link to a local file into a node. The file's stored on a fileserver in the local network. The fileserver isn't the same server as the webserver drupal's working on. I haven't the time nor the possibility to put the files on the webserver. This is for an intranetapplication.
Somebody can help me with this one?
Txs in advance for your reply.

Dynamic Block Content from cache_get()

Hello, I need to create the content for a block (D7) that shows user who are currently participating in a collaborative node editing session. (http://drupal.org/project/mobwrite)
I currently have an array of UID's in cache using cache_set() so all clients will have the same list and currently have the beginnings of a block.

Execute SQL from CCK node

Hi,

I have tried to find an answer to this basic question browsing google and the forum, but without any success..

Migrate WordPress to Drupal 7 (Python Script)

I wrote a Python script intended to take WordPress post, user, and comment data and translate it into a file containing SQL so it can be queried in your site's database. That way, no module need be downloaded, which is kinda good at the current time since Drupal 7's pretty new, with only a few developed migration modules that may or may not be usable.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x